table.insert(itemActions,
	function(item, action)
		-- GOLD
		local priority = 3 -- pick priority
		local mingold = 2000 -- min gold value

		if item.baseItem.code ~= "gld" then 
			return false
		elseif action == aPICK and item.action ~= ItemActionType.DropToGround and
				item.stats[0].Value > mingold then
			return priority
		end

		return false
	end
)